package TEST.day05;

public class Employee {
    static double wage;
    double allowance;
    public double getSalary(){
        return wage+allowance;
    }
    public static void addWage(int a){
        wage=wage+a;
    }

    public static void main(String[] args) {
        Employee e1=new Employee();
        Employee e2=new Employee();
        Employee.wage=1000;
        e1.allowance=200;
        Employee.addWage(500);
        e2.addWage(200);
        System.out.println(e1.wage);
        System.out.println(e2.wage);
        System.out.println(e1.getSalary());
    }
}
